/*
 * @Author: byron
 * @Date: 2021-10-25 09:16:22
 * @LastEditTime: 2022-02-11 19:56:36
 */
import {
    createRouter,
    createWebHistory
} from 'vue-router'
import routes from './module/base-routes'
import {
    permissionController
} from './permission'

export const router = createRouter({
    history: createWebHistory(),
    routes: routes,
})

// 全局前置守卫
router.beforeEach(permissionController)

export default router